/**
 *@ClassName ListAndMap
 *
 *@Author ykx
 *@Date  2024/6/17 16:16
 *@Version 1.0
 */
fun main(args: Array<String>) {
    var lists = listOf<String>("买鸡蛋", "买大米", "买冰淇淋", "买杜蕾斯")
//    for (list in lists) {
//        println(list)
//    }
    for ((i, e) in lists.withIndex()) {
        println("$i,$e")
    }
    

}